package com.cqq.print.business.dao;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.cqq.print.business.dao.domain.PProduceDetail;


/**
 * @author generated
 * @date 2015-07-01
 */
public interface PProduceDetailDao {


    int deleteByPrimaryKey(Integer id);

    int insertSelective(PProduceDetail record);

    PProduceDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PProduceDetail record);

    List<PProduceDetail> queryDetailsByProduceId(@Param("proId")Integer proId);
    
    List<PProduceDetail> queryDetailsWithProPlanByProduceId(@Param("proId")Integer proId);

    void deleteByProduceId(@Param("proId")Integer proId);
    
    List<PProduceDetail> queryDetailsByUserId(Map<String,Object> map);
    
    int queryCountDetailsByUserId(Map<String,Object> map);

}